<?php

use think\facade\Route;

//商城后端路由表
Route::group('admin', function () {
    //分类列表
    Route::any('AdminCate/cateList', 'AdminCate/cateList');
    //添加分类
    Route::any('AdminCate/cateAdd', 'AdminCate/cateAdd');
    //编辑分类
    Route::any('AdminCate/cateUpdate', 'AdminCate/cateUpdate');
    //分类详情
    Route::any('AdminCate/cateInfo', 'AdminCate/cateInfo');
    //分类下拉框
    Route::any('AdminCate/cateSelect', 'AdminCate/cateSelect');
    //活动列表
    Route::any('AdminAtv/atvList', 'AdminAtv/atvList');
    //添加活动
    Route::any('AdminAtv/atvAdd', 'AdminAtv/atvAdd');
    //活动详情
    Route::any('AdminAtv/atvInfo', 'AdminAtv/atvInfo');
    //活动编辑
    Route::any('AdminAtv/atvUpdate', 'AdminAtv/atvUpdate');
    //活动上下架
    Route::any('AdminAtv/statusUpdate', 'AdminAtv/statusUpdate');
    //门店下拉框
    Route::any('AdminAtv/storeSelect', 'AdminAtv/storeSelect');
    //报名情况
    Route::any('AdminAtv/recordList', 'AdminAtv/recordList');

    Route::any('AdminAtv/recordTitle', 'AdminAtv/recordTitle');

    Route::any('AdminAtv/passRecord', 'AdminAtv/passRecord');

    Route::any('AdminAtv/noPassRecord', 'AdminAtv/noPassRecord');
    //内容列表
    Route::any('AdminContent/contentList', 'AdminContent/contentList');
    //添加内容
    Route::any('AdminContent/contentAdd', 'AdminContent/contentAdd');
    //内容详情
    Route::any('AdminContent/contentInfo', 'AdminContent/contentInfo');
    //内容编辑
    Route::any('AdminContent/contentUpdate', 'AdminContent/contentUpdate');
    //内容下拉框
    Route::any('AdminContent/contentSelect', 'AdminContent/contentSelect');
    //权限列表
    Route::any('AdminAuth/authList', 'AdminAuth/authList');
    //添加权限
    Route::any('AdminAuth/authAdd', 'AdminAuth/authAdd');
    //权限详情
    Route::any('AdminAuth/authInfo', 'AdminAuth/authInfo');
    //权限编辑
    Route::any('AdminAuth/authUpdate', 'AdminAuth/authUpdate');
    //门店下拉框
    Route::any('AdminAuth/storeSelect', 'AdminAuth/storeSelect');
    //订单
    Route::any('AdminOrder/storeList', 'AdminOrder/storeList');

    Route::any('AdminOrder/storeOrder', 'AdminOrder/storeOrder');

    Route::any('AdminOrder/storeRefundOrder', 'AdminOrder/storeRefundOrder');
    //同意退款
    Route::any('AdminOrder/passRefundOrder', 'AdminOrder/passRefundOrder');
    //不同意退款
    Route::any('AdminOrder/noPassRefundOrder', 'AdminOrder/noPassRefundOrder');




});



//前端路由文件
Route::group('app', function () {
    //列表
    Route::any('IndexAtv/atvList', 'IndexAtv/atvList');
    //活动详情
    Route::any('IndexAtv/atvInfo', 'IndexAtv/atvInfo');
    //参加活动
    Route::any('IndexAtv/recordAdd', 'IndexAtv/recordAdd');
    //活动内容
    Route::get('IndexAtv/atvContent', 'IndexAtv/atvContent');
    //提交表单
    Route::any('IndexAtv/subInfo', 'IndexAtv/subInfo');
    //用户活动列表
    Route::any('IndexAtv/userRecordList', 'IndexAtv/userRecordList');
    //记录详情
    Route::any('IndexAtv/recordInfo', 'IndexAtv/recordInfo');
    //分类列表
    Route::any('IndexStaff/cateList', 'IndexStaff/cateList');
    //活动列表
    Route::any('IndexStaff/activeList', 'IndexStaff/activeList');
    //活动详情（atv_id）
    Route::any('IndexStaff/activeInfo', 'IndexStaff/activeInfo');

    Route::any('IndexStaff/passRecord', 'IndexStaff/passRecord');

    Route::any('IndexStaff/noPassRecord', 'IndexStaff/noPassRecord');

    Route::any('IndexStaff/atvAdd', 'IndexStaff/atvAdd');

    Route::any('IndexStaff/atvUpdate', 'IndexStaff/atvUpdate');

    Route::any('IndexStaff/contentSelect', 'IndexStaff/contentSelect');

    Route::any('IndexStaff/atvForm', 'IndexStaff/atvForm');
    //申请退款
    Route::any('IndexStaff/applyOrder', 'IndexStaff/applyOrder');
    //交易记录
    Route::any('IndexStaff/orderRecord', 'IndexStaff/orderRecord');
    //是否有发布活动的权限
    Route::any('IndexStaff/activeAuth', 'IndexStaff/activeAuth');

    Route::any('IndexStaff/getStoreId', 'IndexStaff/getStoreId');








});

















